package entity.score;

import Tools.Tool;

import java.awt.*;
import java.awt.event.KeyEvent;

public class Score extends Tool {
    public int x,y,height,widht;

    public Image image=bgScoreImg;
    public Image imageBg=bgImg;
    public Score(){
        this.x=0;
        //System.out.println(image.getSource());
        this.y=-image.getHeight(null);
        this.widht=780;
        this.height=200;
    }

    public void paintSelf(Graphics g){
        g.drawImage(this.image,this.x+250,250,widht,height,null);
    }

    public void move(KeyEvent e){
//        System.out.println(bgImg.getHeight(null));
//      if(e.getKeyCode()==39 && this.x+10<bgImg.getWidth(null)-widht-30){this.x+=10;}
//      if(e.getKeyCode()==37 && this.x-10>20){this.x-=10;}
    }
}
